package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-19
 * Time:21:25
 */
public abstract class user {
    protected String name;

    protected IOperation[] iOperations;

    public abstract int menu();

    public void operation(int choice,BookList books){
        IOperation iOperation=this.iOperations[choice];
        iOperation.work(books);
    }
}
